package com.lottery.dto;

public class Message {
	private String messageBody;
	private String type;
	private int index;
	private long timestamp;

	public Message() {
		super();
	}

	public Message(String messageBody, String type) {
		super();
		this.messageBody = messageBody;
		this.type = type;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getMessageBody() {
		return messageBody;
	}

	public void setMessageBody(String messageBody) {
		this.messageBody = messageBody;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Message [messageBody=" + messageBody + ", type=" + type + ", index=" + index + ", timestamp="
				+ timestamp + "]";
	}
	
	
}
